|
|
|
|
|
|
|
|
You also can change the setting of the WindowList property from code.  |
|
|
|
|
|
|
|
|
|
|
Figure 17.16
Check the WindowList box to create a list
of open child windows in your MDI menu. |
|
|
|
|
|
|
|
|
As you add child forms to the application, the window list menu item is automatically updated to include the new form. The caption of the menu item is the caption that is given to the form that you create. The active form in the window list is indicated by a check mark. Figure 17.17 shows a window list for an MDI application. |
|
|
|
|
|
|
|
|
Figure 17.17
The window list lets the users
select the form with which to work. |
|
|
|
|
|
|
|
|
Creating a Sample Applicationan MDI Contact Manager |
|
|
|
|
|
|
|
|
Obviously, the best way to demonstrate the techniques of MDI applications is to build an application that you might actually use. This program uses multiple instances of a template form to become an MDI application. |
|
|
|
|
|
|
|
|
If part of your job is keeping up with customer contacts, you probably use some kind of contact manager. These programs let you keep up with information about each of your customers, such as their name, address, phone numbers, the date you last contacted them, and so forth. One of the disadvantages of some contact managers is that you can only work with a single |
|
|
|
|
|